from easycore.common.config import HierarchicalCfgNode
import os

def get_train_config(file_path):
    config = HierarchicalCfgNode.open(file_path)
    return config

def get_test_config(file_path):
    config = HierarchicalCfgNode.open(file_path)
    config['model']['load_pretrained_weigths'] = False
    return config
